﻿/**
 *      设备基类
 */
#pragma once

#include "labelDriverDef.hpp"
#include "labelDeviceBase.hpp"


class AutoRunningInfo
{
public:
	AutoRunningInfo(LabelDeviceBase* pDevice,const char* pcFunctionName
						,	const char* pcFileName,const int	iLine
						, DWORD dwThresholdMs);
	virtual ~AutoRunningInfo();

private:
	LabelDeviceBase*		m_pDevice;
	LdRunningInfo		m_dri;
	DWORD					m_dwThresholdMs;	//阈值，超过指定时间才上报，单位毫秒
};

//自动上报运行状态
#define AUTO_RUNNING_INFO(pDevice,dwThresholdMs) AutoRunningInfo autoRunningInfo(pDevice,(const char*)__FUNCTION__,(const char*)__FILE__,__LINE__,dwThresholdMs);

